import url from '../utils/url';
import axios from '../utils/http';

const news = {
  banner() {
    return axios.get(`${url.baseUrl}/n/news/banner`);
  },
  newsNotice(columnId, page, pageSize) {
    return axios.get(`${url.baseUrl}/n/news/${columnId}/${page}/${pageSize}`);
  }
};

export default news